﻿@if (TempData["alert"] != null)
{
    string[] arr = TempData["alert"].ToString().Split('#');
    if (arr[0] == "success")
    {
        <div class="alert alert-success alert-dismissable">
            <button type="button" class="close" data-dismiss="alert" aria-hidden="true"></button>
            <strong>OK!</strong> 
            @Html.Raw(arr[1])
        </div>

    }
    else if (arr[0] == "error")
    {
        <div class="alert alert-danger alert-dismissable">
            <button type="button" class="close" data-dismiss="alert" aria-hidden="true"></button>
            <strong>ERROR!</strong>
            @Html.Raw(arr[1])
        </div>
    }
    else
    {
        <div class="alert alert-info">
            <button type="button" class="close" data-dismiss="alert" aria-hidden="true"></button>
            <strong>INFO!</strong>
            @Html.Raw(arr[1])
        </div>
    }
}